﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GUI
{
    public partial class FrmMain : Form
    {
        DAL.UserDAL usr = new DAL.UserDAL();

        public FrmMain()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {            
            dataGridView1.DataSource = usr.GetAllData("TOan");            
            //BLL.UserBLL bll = new BLL.UserBLL();            
            //dataGridView1.DataSource = bll.GetAllData("oo");
        }

        private void button2_Click(object sender, EventArgs e)
        {            
            dataGridView1.DataSource = usr.Insert("1", "33", 1);
        }
    }
}
